]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Fix updating suggestions visibility
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 3 Jul 2022 14:44:39 +0000 (16:44 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 3 Jul 2022 14:47:12 +0000 (16:47 +0200)
Commit 237ba24dbeae added corresponding API to the keyboard actor,
but ended up calling it on the KeyboardManager.

Add the expected method to KeyboardManager that forwards the request
to the keyboard.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5630

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2359>

js/ui/keyboard.js

index ac2a800b40648aeb7a02bf5e3fa820809ff7050f..b40886cc1bf09bf60c96689d1d9460c5af9b1cc5 100644 (file)
@@ -1276,6 +1276,10 @@ var KeyboardManager = class KeyBoardManager {
             this._keyboard.resetSuggestions();
     }
 
+    setSuggestionsVisible(visible) {
+        this._keyboard?.setSuggestionsVisible(visible);
+    }
+
     maybeHandleEvent(event) {
         if (!this._keyboard)
             return false;